﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="ShopSpace.Core" namespace="ShopSpace.Core">
	<class name="LogEntry" table="pm_LogEntry" lazy="true" >
		<id name="Id" type="Int32">
			<column name="Id" length="4" not-null="true" sql-type="INT"/>
			<generator class="identity" />
		</id>
		<version name="ConcurrencyDate" type="Timestamp"  />
		<property name="AddedBy" type="String" >
			<column name="AddedBy" length="100" not-null="true" sql-type="VARCHAR(100)"/>
		</property>
		<property name="AddedDate" type="DateTime" >
			<column name="AddedDate" length="8" not-null="true" sql-type="DATETIME"/>
		</property>
		<property name="UpdatedBy" type="String" >
			<column name="UpdatedBy" length="100" not-null="false" sql-type="VARCHAR(100)"/>
		</property>
		<property name="UpdatedDate" type="DateTime" >
			<column name="UpdatedDate" length="8" not-null="false" sql-type="DATETIME"/>
		</property>
		<many-to-one name="WorkItem" class="WorkItem" lazy="proxy" foreign-key="FK_LogEntry_WorkItem">
			<column name="WorkItemId" length="4" not-null="true" sql-type="INT"/>
		</many-to-one>
		<many-to-one name="Person" class="Person" lazy="proxy" foreign-key="FK_LogEntry_Person">
			<column name="PersonId" length="4" not-null="true" sql-type="INT"/>
		</many-to-one>
		<property name="LogEntryType" type="Int32">
			<column name="LogEntryType" length="4" not-null="true" sql-type="INT"/>
		</property>
		<property name="Detail" type="String">
			<column name="Detail" length="16" not-null="true" sql-type="VARCHAR(MAX)"/>
		</property>
	</class>
</hibernate-mapping>